package com.atguigu.gulimall.search.vo;

import com.atguigu.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * 封装查询结果
 */
@Data
public class SearchReslut {

    private List<SkuEsModel> products;//商品所有信息
    //分页
    private Integer pageNum;//当前页
    private Long total;//总记录数
    private Integer totalPagees;//总页数

    //所有品牌信息
    private List<Brandvo> brands;
    //分类
     private List<catelogVo> catelogs;
    //商品属性信息
    private List<attrVo> attrs;

    @Data
    public static class Brandvo {
        private Long brandId;
        private String brandName;
        private String brandLogo;
    }

    @Data
    public static class attrVo {
        private Long attrId;
        private String attrNmae;
        private List<String> attrValue;
    }
    @Data
    public static class catelogVo {
        private Long catelogId;
        private String catelogNmae;

    }
}
